class CreateTimeunits < ActiveRecord::Migration
  def self.up
    create_table :timeunits do |t|
      t.column :name, :string
    end
    execute "INSERT INTO `timeunits` (`id`, `name`) VALUES ('1', 'Hours');" 
    execute "INSERT INTO `timeunits` (`id`, `name`) VALUES ('2', 'Days');" 
    execute "INSERT INTO `timeunits` (`id`, `name`) VALUES ('3', 'Months');" 
    execute "INSERT INTO `timeunits` (`id`, `name`) VALUES ('4', 'Years');" 
  end

  def self.down
    drop_table :timeunits
  end
end
